#ifndef _microSemaphore_H_
#define _microSemaphore_H_


typedef struct MicroSemaphoreStruct{
    uint32_t value;

    MicroListType list;                     /* 链表 */
}MicroSemaphoreType;


MicroSemaphoreType *ptypeMicroSemaphoreCreat(uint32_t uiValue);
int8_t cMicroSemaphoreReceive(MicroSemaphoreType *ptypeSemaphoreHandle);
int8_t cMicroSemaphoreSend(MicroSemaphoreType *ptypeSemaphoreHandle, uint32_t uiValue);
int8_t cMicroSemaphoreAdd(MicroSemaphoreType *ptypeSemaphoreHandle);


#endif
